package com.mall.dubbo.api;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.mall.dubbo.mappers.CmsPrefrenceAreaMapper;
import com.tanhua.model.domain.CmsPrefrenceArea;
import com.tanhua.model.domain.PmsProductAttribute;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@DubboService
public class CmsPrefrenceAreaApiImpl implements CmsPrefrenceAreaApi{

    @Autowired
    private CmsPrefrenceAreaMapper cmsPrefrenceAreaMapper;

    /**
     * 获取所有商品优选
     * @return
     */
    @Override
    public List<CmsPrefrenceArea> listAll() {
        return cmsPrefrenceAreaMapper.selectList(new LambdaQueryWrapper<>());
    }





}
